package com.zrulin.findcomrade.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @author zrulin
 * @create 2021-04-21 21:06
 */
@Data
@ToString
@ApiModel("用户实体类")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("密码")
    private String password;
    private String phone;
    private Integer gander;
    private Integer age;
    private String comparative;
    private String introduce;
    private String school;
    private String major;
    private String hobbies;
    private String photo;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
